﻿using HYHY_Core.Entities.Utils;
using HYQY_Core.Entities.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HYQY_App.Admin_System.Dtos
{
    /// <summary>
    /// 广告管理dto
    /// </summary>
    public class AdvertisingAdminDto
    {
        /// <summary>
        /// 广告类型输出
        /// </summary>
        public class SelectAdvertisingTypeOutput
        {
            public int Id { get; set; }

            public string Type { get; set; }
        }

        /// <summary>
        /// 广告类型-响应
        /// </summary>
        public class SelectAdvertisingTypeResp : ResponseStatus
        {
            public List<SelectAdvertisingTypeOutput> List { get; set; }
        }

        /// <summary>
        /// 广告管理列表-输入
        /// </summary>
        public class SelectAdvertisingListInput : InputPageBase
        {
            /// <summary>
            /// 广告类型<br/>
            /// 轮播图：1<br/>
            /// </summary>
            public int? Type { get; set; }

            /// <summary>
            /// 是否启用
            /// </summary>
            public bool? IsEnable { get; set; }
        }

        /// <summary>
        /// 广告管理列表-输出
        /// </summary>
        public class SelectAdvertisingListOutput
        {
            /// <summary>
            /// 广告id
            /// </summary>
            public string Aid { get; set; }

            /// <summary>
            /// 图片路径
            /// </summary>
            public string Path { get; set; }

            /// <summary>
            /// 广告类型<br/>
            /// 轮播图：1<br/>
            /// </summary>
            public string Type { get; set; }

            /// <summary>
            /// 是否启用
            /// </summary>
            public bool IsEnable { get; set; }

            /// <summary>
            /// 类型id
            /// </summary>
            public int Id { get; set; }

            /// <summary>
            /// 类型标题
            /// </summary>
            public string Title { get; set; }

            /// <summary>
            /// 广告展示位置
            /// </summary>
            public string ShowLocation { get; set; }

            /// <summary>
            /// 开始时间
            /// </summary>
            public DateTime BeginTime { get; set; }

            /// <summary>
            /// 结束时间
            /// </summary>
            public DateTime EndTime { get; set; }
        }

        /// <summary>
        /// 广告管理列表-响应
        /// </summary>
        public class SelectAdvertisingListResp : ResponseStatus
        {
            public List<SelectAdvertisingListOutput> List { get; set; }

            public int Total { get; set; }
        }

        /// <summary>
        /// 设置广告状态-输入
        /// </summary>
        public class SetAdStatusInput
        {
            public string Aid { get; set; }

            public bool? IsEnable { get; set; }

        }

        /// <summary>
        /// 设置广告-输入
        /// </summary>
        public class AddAdvertisingInput
        {
            /// <summary>
            /// 图片路径
            /// </summary>
            public string Path { get; set; }

            /// <summary>
            /// 广告类型<br/>
            /// 轮播图：1<br/>
            /// </summary>
            public int? Type { get; set; }

            /// <summary>
            /// 是否启用
            /// </summary>
            public bool IsEnable { get; set; }

            /// <summary>
            /// 类型id
            /// </summary>
            public int? Id { get; set; }

            /// <summary>
            /// 类型标题
            /// </summary>
            public string Title { get; set; }

            /// <summary>
            /// 广告展示位置
            /// </summary>
            public string ShowLocation { get; set; }

            /// <summary>
            /// 开始时间
            /// </summary>
            public DateTime? BeginTime { get; set; }

            /// <summary>
            /// 结束时间
            /// </summary>
            public DateTime? EndTime { get; set; }
        }

        /// <summary>
        /// 编辑广告-输入
        /// </summary>
        public class UpdateAdvertisingInput
        {
            /// <summary>
            /// 广告id
            /// </summary>
            public string Aid { get; set; }

            /// <summary>
            /// 图片路径
            /// </summary>
            public string Path { get; set; }

            /// <summary>
            /// 广告类型<br/>
            /// 轮播图：1<br/>
            /// </summary>
            public int? Type { get; set; }

            /// <summary>
            /// 是否启用
            /// </summary>
            public bool IsEnable { get; set; }

            /// <summary>
            /// 类型id
            /// </summary>
            public int? Id { get; set; }

            /// <summary>
            /// 类型标题
            /// </summary>
            public string Title { get; set; }

            /// <summary>
            /// 广告展示位置
            /// </summary>
            public string ShowLocation { get; set; }

            /// <summary>
            /// 开始时间
            /// </summary>
            public DateTime? BeginTime { get; set; }

            /// <summary>
            /// 结束时间
            /// </summary>
            public DateTime? EndTime { get; set; }
        }

        /// <summary>
        /// 删除广告-输入
        /// </summary>
        public class DeleteAdvertisingInput
        {
            /// <summary>
            /// 广告id
            /// </summary>
            public string Aid { get; set; }
        }
    }
}
